package cn.gson.school.dao.xitong;

import java.util.List;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.school.entity.xitong.DeptEntity;
import cn.gson.school.entity.xitong.UserEntity;
import cn.gson.school.entity.xitong.UserInfoEntity;

@Repository
public interface UserInfoDao extends CrudRepository<UserInfoEntity, Long> {
	UserInfoEntity findByUserName(String username);
	UserInfoEntity findByUserId(UserEntity user);
	List<UserInfoEntity> findByDept(DeptEntity dept);
}
